package com.jb.repair.common;

import org.json.JSONObject;

/**
 * Created by YL1988 on 2015/11/8 0008.
 */
public class Constants {

    public static final String SP_NAME = "global";
    public static final String SERVICE_ADDRESS = "service_address";
    public static final String DB_PATH = "db_path";
    public static final String DB_UPDATE_TIME = "db_update_time";
    public static final String CHECK_UPDATE_TIME = "check_update_time";
    public static final String PERSON_NAME = "person_name";
    public static final String PERSON_GUID = "person_guid";
    public static final String PERSON_LOGO_ID = "person_logo_id";

    public static final int UPDATE_YES = 1;
    public static final int UPDATE_NO = 2;

    public static final String FAKE_LOGIN_ID = "402881ea4d4d9450014d4e46e66a0009";
    public static final String LOGIN_URL = "permission/account/login.do";   //登陆接口
    public static final String LOGIN_URL_FRO_REGULAR = "permission/account/login.do";//定期工作专用登录接口
    public static final String LOGIN_NAME_FRO_REGULAR = "haoliya";
    public static final String LOGIN_PSW_FRO_REGULAR = "000";
  //  public static final String LOGIN_OFF_URL = "http://zhrx.joinbright.com:8080/relay/permission/account/loginoff.do";   //退出登陆接口
    public static final String REGIS_ABNORMAL_URL = "registerAbnormal.do";          //登记正常接口
    public static final String REGIS_DEFECT_URL = "registerDefect.do";              //登记缺陷接口
//    public static final String REGIS_NORMAL_URL = "registerNormal.do";                 //登记异常接口
//    public static final String REGIS_NUM = "registerNumItem.do";                    //数值类结果接口
    public static final String UPLOAD_FILE_URL = "common/uploadGridFile/uploadFile.do";                 //文档上传接口
    public static final String INIT_DB_URL = "xdjgl/app/getInitDB.do";
    public static final String DOWN_FILE_URL = "file/commonFile/downloadFile.do?guid=%s&zbGuid=%s";  //附件下载接口
    public static final String UPDATE_CHECK_URL = "xdjgl/app/getTadayTask.do";     //同步下拉点检数据
    public static final String UPDATE_LEDGER_URL = "xdjgl/app/getData.do";     //同步下拉台账数据
    public static final String UPLOAD_RESULT_URL = "xdjgl/app/uploadCheckResult.do";     //上传点检结果
    public static final String UPLOAD_ABNORMAL_URL = "xdjgl/app/uploadAbnormal.do";     //上传异常
    public static final String UPLOAD_DEFECT_URL = "xdjgl/app/uploadDefect.do";     //上传缺陷
    public static final String GET_FILE_SIZE_URL = "xdjgl/app/getFileSize.do";     //下载文件前获取文件大小
    public static final String UPLOAD_TASK_STATUS_URL = "xdjgl/app/uploadTaskStatus.do";
    public static final String APK_UPDATE_URL = "xdjgl/app/updateAPK.do";     //返回当前最新版本信息
    public static final String DOWN_DB_URL = "common/uploadGridFile/downloadFile.do?flag=db";
    public static final String DOWN_APK_URL = "common/uploadGridFile/downloadFile.do?flag=apk";
    public static final String UPLOAD_RESULT_STATISTIC_URL = "xdjgl/app/updateReStat.do"; // 上传点检统计信息
    public static final String GET_REGULAR_WORK_URL = "dqgz/cmdDqgzjh/downLoadTaskMsg.do";     //获取定期工作
    public static final String UPLOAD_REGULAR_WORK_URL = "http://192.168.23.121:8080/jddx/xxx/xxxx.do";     //上传定期工作
    public static final String GET_TASK_TABLE_LIST_URL = "ui/grid/query.do";     //获取任务表列表
    public static final String GET_TASK_TABLE_URL = "dqgz/cmdDqgzjh/uploadMb.do";     //下载任务表
    public static final String UPLOAD_TASK_TABLE_URL = "file/commonFile/fieldUploadFile.do"; //上传任务表
    public static final String SUBMIT_REPORT_URL = "dqgz/cmdDqgzjh/tjbg.do"; //提交报告
    public static final String TASK_DELAY_URL = "dqgz/cmdDqgzjh/queryyqyy.do";     //定期工作延期
    public static final String TASK_CANCEL_URL = "dqgz/cmdDqgzjh/queryyqyy.do";     //定期工作取消
    public static final String TASK_COMPLETE_URL = "dqgz/cmdDqgzjh/updatedjq.do"; //定期工作完成

    public static final String REMIND_HOUR = "remind_hour"; // 闹钟小时
    public static final String REMIND_MINUTE = "remind_minute"; // 闹钟分钟
    public static final String REMIND_TIME = "remind_time"; // 闹钟分钟
    public static final String SWITCH_MEASURE = "switch_measure"; // 测温测振开关
    public static final String LAST_GET_REGULAR_WORK_TIME = "last_get_regular_work_time"; // 上次获取定期工作的时间

    /* 定期工作状态常量 */
    public static final String CT_TASK_STATUS = "{\n" +
            "\t\"0700207\": \"未完成\",\n" +
            "\t\"0700206\": \"已取消\",\n" +
            "\t\"0700205\": \"已延期\",\n" +
            "\t\"0700204\": \"超期已完成\",\n" +
            "\t\"0700203\": \"超期未完成\",\n" +
            "\t\"0700202\": \"已完成\",\n" +
            "\t\"0700201\": \"未开始\"\n" +
            "}";

    /* 定期工作状态常量 */
    public static final String CT_TASK_STATUS_NAME = "{\n" +
            "\t\"未完成\": \"0700207\",\n" +
            "\t\"已取消\": \"0700206\",\n" +
            "\t\"已延期\": \"0700205\",\n" +
            "\t\"超期已完成\": \"0700204\",\n" +
            "\t\"超期未完成\": \"0700203\",\n" +
            "\t\"已完成\": \"0700202\",\n" +
            "\t\"未开始\": \"0700201\",\n" +
            "\t\"全部\": \"0700200\"\n" +
            "}";

}